// urlProtoco.nsh
!macro customInstall
  DetailPrint "Register your-protocol-name URI Handler"
  DeleteRegKey HKCR "electronTest"
  WriteRegStr HKCR "electronTest" "" "URL:electronTest"
  WriteRegStr HKCR "electronTest" "URL Protocol" ""
  WriteRegStr HKCR "electronTest\shell" "" ""
  WriteRegStr HKCR "electronTest\shell\Open" "" ""
  WriteRegStr HKCR "electronTest\shell\Open\command" "" "$INSTDIR\${APP_EXECUTABLE_FILENAME} %1"
!macroend